#pragma once
#include <Windows.h>
#include <cstdio>

namespace CODEHELPER
{
    class CFileHelper
    {
    public:
        CFileHelper( LPCTSTR lpszFilePath );
        virtual ~CFileHelper( void );

    public:
        BOOL PathFileExist();
        BOOL Seek();
        BOOL Open( LPCTSTR lpOpenModel );
        BOOL Read( LPVOID lpBuf, DWORD dwReadSize, DWORD dwReaded );
        BOOL Write( LPCVOID lpcBuf, DWORD dwWriteSize, DWORD dwWrited );
        void Close();
        DWORD GetFileSize();
    private:
        FILE* m_pFile;
    };
}


